package kunong.example.petpet;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class PetPet extends Activity {
	private View startButton;
	private View.OnClickListener startButtonListener = new View.OnClickListener()
	{
		public void onClick(View v)
		{
			Intent i = new Intent(getBaseContext(), Test.class);
			startActivity(i);
		}
	};

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		setObjectListeners();
	}

	public void setStartButton(View startButton) {
		this.startButton = startButton;
	}

	public View getStartButton() {
		return startButton;
	}

	private void setObjectListeners()
	{
		setStartButton(findViewById(R.id.startButton));
		
		// Setting Click Listener
		if (getStartButton() != null)
			getStartButton().setOnClickListener(startButtonListener);
	}
}